<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
    <h1>登录</h1>
    <h2>
        <div th:text="${session.SPRING_SECURITY_LAST_EXCEPTION}"></div>
    </h2>
    <form method="post" th:action="@{/doLogin}">
        用户名:<input id="username" name="username" type="text"/><br>
        密码:<input id="password" name="password" type="text"/><br>
        <button type="submit" >登录</button>
    </form>
</body>
</html>
